package ycl.base.common.models.req.base;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 单个对象查询
 *
 * @author: YCL
 * @date: 2021-10-05 17:23:59
 */
@Data
@ApiModel("单个对象查询, 可传任何对象")
public class ObjReq<T> {

	@ApiModelProperty(value = "任意对象",required = true)
	@NotNull(message = "obj不能为空")
	private T obj;
}
